<?php
namespace app\model\admin\material;

use app\model\admin\lineup\LineupGame;
use laytp\BaseModel;

class MaterialNav extends BaseModel
{
    protected $name = 'material_nav';

    public function style(){
        return $this->hasOne(MaterialStyle::class,"id","material_style_id")->bind(['style_name'=>"name"]);
    }

    public function lineup(){
        return $this->hasOne(LineupGame::class,"id","lineup_game_id")->bind(['lineup_name'=>"name"]);
    }
}